<?php
$this->pageHeader = t('PAGE_TITLE', 'contact');
$this->pageTitle = t('PAGE_TITLE', 'contact');
$toolbar = new LGToolbar();
$toolbar->buttonDelete('Delete', 'LogiGear CMS', app()->controller->id . '/delete');
$toolbar->buttonRefresh(t('BTN_REFRESH'), t('BTN_REFRESH'), url(app()->controller->id . '/refresh'));
$this->pageToolbar = $toolbar->mergeToolbar();
$this->breadcrumbs = array('Management', 'Contact' => array('index'));
?>
<!-- search-form -->
<div class="search-form" >
    <?php
    $this->renderPartial('_search', array(
        'model' => $model,
    ));
    ?>
</div>

<!-- grid -->
<?php
$this->widget('GridView', array(
    'id' => 'DataGrid',
    'dataProvider' => $model->search(),
    'summaryText'=> LGHelpers::getSummary(),
    'columns' => array(
        array(
            'header' => '#',
            'class' => 'CCheckBoxColumn',
            'selectableRows' => '2',
            'id' => 'chkId',
        ),
        array(
            'header' => t('LBL_NAME', 'contact'),
            'htmlOptions' => array('width' => '160px'),
            'name' => 'name',
        ),
        array(
            'header' => t('LBL_COMMENT', 'contact'),
            'name' => 'comment',
	    'sortable' => false,
        ),
        array(
            'header' => t('LBL_EMAIL', 'contact'),
            'htmlOptions' => array('width' => '160px', 'align' => 'center',),
            'name' => 'email',
        ),
        array(
            'header' => t('LBL_PHONE', 'contact'),
            'name' => 'phone',
	    'htmlOptions' => array('width' => '160px', 'align' => 'center'),
        ),
        array(
            'header' => t('LBL_ROLE', 'contact'),
            'htmlOptions' => array('width' => '160px', 'align' => 'center'),
            'name' => 'role',
        ),
        array(
	    'header' => t('LBL_SUBMIT_DATE', 'contact'),
            'name' => 'submit_date',
            'htmlOptions' => array('align' => 'center', 'width' => '160px'),
            'sortable' => TRUE,
        ),
    ),
));
?>